package com.lagou.dao;

import com.lagou.pojo.User;

import java.util.List;

public interface IUserDao {

    //查询所有用户
    public List<User> findAll() throws Exception;


    //根据条件进行用户查询
    public User findByCondition(User user) throws Exception;

    //请完善自定义持久层框架IPersistence，在现有代码基础上添加、修改及删除功能。【需要采用getMapper方式】
    //插入用户信息
    public void insertUser(User user) throws Exception;

    //更新用户信息
    public void updateUser(User user) throws Exception;

    //根据id删除用户信息
    public void deleteUser(User user) throws Exception;

}
